import { post } from '@/core/utils/http';
import type { Response } from '@/core/models';

/**  获取用户按月签到数据 */
export const queryUserCheckByMonth = (data : any) : Promise<Response<any>> => {
	return post('Api/CheckIn/GetUserCheckByMonth', {
		data,
	}, true);
}

/**  获取用户总签到次数 */
export const queryUserCheckCount = () : Promise<Response<number>> => {
	return post('Api/CheckIn/GetUserCheckCount', {}, true);
}

/**  签到接口 */
export const queryUserCheckIn = (data : any) : Promise<Response<any>> => {
	return post('Api/CheckIn/DoUserCheckIn', {
		data,
	}, true);
}